package com.ruoyi.demo1;

import com.ruoyi.entity.User;

/**
 * @description: 测试builder模式
 * @author: xukaihang
 * @date: 2025/10/2
 */
public class BuilderGenerator {
    public static void main(String[] args) {
        // builder模式
        User user = User.builder()
                .name("xukaihang")
                .age(18)
                .email("<EMAIL>")
                .tenantId("296")
                .build();
        System.out.println(user);
    }
}
